#if !defined(AFX_EDITLESSONPAGE_H__F35032A1_18A8_11D6_8D1A_91CDB5575370__INCLUDED_)
#define AFX_EDITLESSONPAGE_H__F35032A1_18A8_11D6_8D1A_91CDB5575370__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// EditLessonPage.h : header file
#include "LessonInformationset.h"

//

/////////////////////////////////////////////////////////////////////////////
// CEditLessonPage dialog

class CEditLessonPage : public CPropertyPage
{
	DECLARE_DYNCREATE(CEditLessonPage)

// Construction
public:
	CEditLessonPage();
	~CEditLessonPage();
private:
	CLessonInformationset* m_pLessonset;
	CDatabase* m_database;

// Dialog Data
	//{{AFX_DATA(CEditLessonPage)
	enum { IDD = IDD_EDIT_LESSON };
	CEdit	m_EditTeacherNumber;
	CEdit	m_EditMaxNumber;
	CEdit	m_EditLessonNumber;
	CEdit	m_EditLessonName;
	CEdit	m_EditBeginDate;
	CString	m_LessonName;
	int		m_LessonNumber;
	int		m_MaxNumber;
	int		m_TeacherNumber;
	CString	m_BeginDate;
	//}}AFX_DATA


// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CEditLessonPage)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL
	virtual BOOL OnApply();
	virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CEditLessonPage)
	virtual BOOL OnInitDialog();
	afx_msg void OnAdd();
	afx_msg void OnDel();
	afx_msg void OnEdit();
	afx_msg void OnFirst();
	afx_msg void OnLast();
	afx_msg void OnNext();
	afx_msg void OnPrev();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	void SetValue();
//	void SetButtonState();
	void GetValue();
	BOOL IsLastRecord();
	BOOL IsFirstRecord();
//	void SetNoRecordBtnState();
//	BOOL isEmpty();
	void ClearEditText();
//	BOOL isEdit;
//	BOOL isAppend;
//	void SetButtonText(BOOL blSet);
//	void SetEditReadOnly();
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_EDITLESSONPAGE_H__F35032A1_18A8_11D6_8D1A_91CDB5575370__INCLUDED_)
